import 'package:dmz/business/home/widgets/set_moto_widgets.dart';
import 'package:dmz/utils/keyboard_util.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

import '../../../base/pageWidget/base_stateful_widget.dart';
import '../controller/set_infor_controller.dart';

class TransferPage extends BaseStatefulWidget<SetMotoInforController> {
  const TransferPage({super.key});

  @override
  String titleString() => '授权转让'.tr;

  @override
  bool delectControll() => false;

  @override
  get updateId => 'transfer';

  @override
  Widget buildContent(BuildContext context) {
    return SetMotoWidgets.backWidget(SetMotoWidgets.mainWidget(
            controller.transferInputCT,
            controller.transferAddInput,
            controller.inputChange,
            controller.didTransfer))
        .addGestureDetector(() => KeyboardUtils.hideKeyboardGex());
  }
}
